const labelService = require('../service/label.service')

class LabelController {
  async create(ctx, next) {
    const { name } = ctx.request.body
    const res = await labelService.create(name)
    ctx.body = {
      code: 0,
      message: '创建标签成功',
      data: res
    }
  }
}

module.exports = new LabelController()
